home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_176_74 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-27  |  1022 b   |  32 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.gameOn == 1)
  3.    {
  4.       _root.hitPlayer(this.hitMe);
  5.       if(isNegative == 0 && _root.negativeColor == 1)
  6.       {
  7.          myColor.negative();
  8.          isNegative = 1;
  9.       }
  10.       if(isNegative == 1 && _root.negativeColor == 0)
  11.       {
  12.          myColor.setTransform(_root.orig1);
  13.          isNegative = 0;
  14.       }
  15.       _X = _X - _root.groundSpeed;
  16.       if(_X < -260)
  17.       {
  18.          removeMovieClip(this);
  19.       }
  20.       if(this._x <= 650 && this.dupeOnce == 1 && _root.phase != 4)
  21.       {
  22.          this.duplicateMovieClip("ground" + _root.groundCount,_root.i + 5000);
  23.          _root["ground" + _root.groundCount]._y = this._y;
  24.          _root["ground" + _root.groundCount]._x = this._width / 1.15 + this._x - 10;
  25.          _root["ground" + _root.groundCount]._height = random(_root.groundHeightAdd) + _root.groundHeightMin;
  26.          _root.i = _root.i + 1;
  27.          this.dupeOnce = 0;
  28.          _root.groundCount = _root.groundCount + 1;
  29.       }
  30.    }
  31. }
  32.